package sagroup.testing;

import java.net.InetAddress;

import lime2.LimeConstants;
import lime2.LimeServer;
import lime2.LimeServerID;
import lime2.RemoteOp;
import lime2.ca.treeplain.TreePlainCA;
import sagroup.dracots.DracoTS;

public class TestUnicast implements Runnable {
	public void run() {
		try
		{
			TreePlainCA ca = new TreePlainCA();
			RemoteOp op =new RemoteOp(LimeConstants.OUT,"out");
			op.set(LimeConstants.IN);
			LimeServerID dest = new LimeServerID(InetAddress.getByName("192.168.30.111"),3456);
			ca.sendOp(dest,op);
		    System.out.println("send op :"+op.toString()+" to " + dest.getHost().getHostAddress());
		}
		catch(Exception e)
		{
			System.out.println(e.getStackTrace());
		}
	}
}
